package com.samoilovich.belarustoday.datemodel;

import java.util.ArrayList;

public class Rates {
    private String mTime;
    private ArrayList<RatesModel> mDollars;
    private ArrayList<RatesModel> mEuros;
    private ArrayList<RatesModel> mRubs;
    private ArrayList<RatesModel> mEurosDollars;
    private ArrayList<RatesModel> mDollarsRubs;

    public Rates() {

    }

    public Rates(String time, ArrayList<RatesModel> dollars, ArrayList<RatesModel> euros, ArrayList<RatesModel> rubs,
                 ArrayList<RatesModel> euroDollars, ArrayList<RatesModel> dollarRubs) {
        mTime = time;
        mDollars = dollars;
        mEuros = euros;
        mRubs = rubs;
        mEurosDollars = euroDollars;
        mDollarsRubs = dollarRubs;
    }

    public String getTime() {
        return mTime;
    }

    public void setTime(String time) {
        mTime = time;
    }

    public ArrayList<RatesModel> getDollars() {
        return mDollars;
    }

    public void setDollars(ArrayList<RatesModel> dollars) {
        mDollars = dollars;
    }

    public ArrayList<RatesModel> getEuros() {
        return mEuros;
    }

    public void setEuros(ArrayList<RatesModel> euros) {
        mEuros = euros;
    }

    public ArrayList<RatesModel> getRubs() {
        return mRubs;
    }

    public void setRubs(ArrayList<RatesModel> rubs) {
        mRubs = rubs;
    }

    public ArrayList<RatesModel> getEurosDollars() {
        return mEurosDollars;
    }

    public void setEurosDollars(ArrayList<RatesModel> eurosDollars) {
        mEurosDollars = eurosDollars;
    }

    public ArrayList<RatesModel> getDollarsRubs() {
        return mDollarsRubs;
    }

    public void setDollarsRubs(ArrayList<RatesModel> dollarsRubs) {
        mDollarsRubs = dollarsRubs;
    }

    // -----------------------------------------------------------------------------------
    public ArrayList<RatesModel> getCurrency(int index) {
        switch (index) {
            case 0:
                return mDollars;
            case 1:
                return mEuros;
            case 2:
                return mRubs;
            case 3:
                return mEurosDollars;
            case 4:
                return mDollarsRubs;
            default:
                return new ArrayList<RatesModel>();
        }
    }

}
